package com.example.xyxwebbackend001.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.xyxwebbackend001.model.entity.ArticleImage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ArticleImageMapper extends BaseMapper<ArticleImage> {

    @Select("SELECT * FROM article_image WHERE art_id = #{articleId}")
    List<ArticleImage> selectByArticleId(@Param("articleId") Integer articleId);
}
